package com.company;

public class Test {

    public static void main(String[] args) {
        Cat cat = new Cat();
        Dog dog = new Dog();
        AnimalBehavior animalBehaviorOfCat = cat;
        AnimalBehavior animalBehaviorOfDog = dog;
        animalBehaviorOfCat.eating();
        animalBehaviorOfDog.eating();
    }
}
